# Makefile
#
# scene modeling project
#

CC = g++
CFLAGS = -Wall `pkg-config opencv --cflags`
LIBS = `pkg-config opencv --libs`

DEPENDENCIES = codebook.h average_background.h
OBJECT = background-model.o \
		 codebook.o average_background.o

background-model: $(OBJECT)
	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)

%.o: %.cpp $(DEPENDENCIES)
	$(CC) $(CFLAGS) -c $<

clean:
	rm -rf *o background-model
